/*
 * File:        playerStatistics.h
 * Authors:     Jonathan Kotker (ee122-bw) and Shaan Mulchandani (ee122-bv)
 * Description: This header file describes one node of the linked list of
 *              current players in the game.
 */

#ifndef _PLAYERLISTNODE_H
#define	_PLAYERLISTNODE_H

#include "playerStatistics.h"

struct playerListNode {

    /* Statistics for the node representing this player. */
    playerStatistics* statistics;

    /* (Server) File descriptor representing a connection from this player. */
    int fileDescriptor;

    /* Pointer to the next node in the player list. */
    struct playerListNode* next;

    /* Pointer to the previous node in the player list. */
    struct playerListNode* prev;
    
};

typedef struct playerListNode playerListNode;

#endif	/* _PLAYERLISTNODE_H */

